Setup client systemd unit
info
ℹ️ Utilisez cette unité systemd pour démarrer TunGo automatiquement au redémarrage.
attention
⚠️ L'unité systemd de TunGo nécessite la configuration par défaut (dernière utilisée).
⚙️ Prérequis
- TunGo est installé comme décrit dans Démarrage rapide.
🛠️ Configuration
1️⃣ Créer le fichier de service
sudo vim /etc/systemd/system/tungo.service
2️⃣ Coller cette configuration
[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=tungo c
User=root
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
3️⃣ Activer le service
sudo systemctl enable tungo.service
4️⃣ Démarrer le service
sudo systemctl start tungo.service
5️⃣ Vérifier son statut
sudo systemctl status tungo.service